package com.sq.util;

import java.util.HashMap;
import java.util.Map;

import com.sq.util.web.HttpGetUtil;
import com.sq.util.web.HttpPostUtil;

public class NetUtilDemo {
    public static void main(String[] args) throws Exception {
        // String url = "http://127.0.0.1/ws/receive/receive.do";
        // Map<String, String> params = new HashMap<String, String>();
        // params.put("sysCode", "aaa");
        // params.put("heartbeatCode", "1234");
        // params.put("content", "先发个岗位");
        // System.out.println(HttpPostUtil.execute(url, params));
        System.out.println(HttpGetUtil.execute("http://www.iteye.com/"));
    }
}
